package com.pony.iphone.dto;

public class SshCommandResponse {
    private boolean success;
    private String data;
    private String error;
    
    // 构造函数
    public SshCommandResponse() {}
    
    public SshCommandResponse(boolean success, String data) {
        this.success = success;
        this.data = data;
    }
    
    public SshCommandResponse(boolean success, String data, String error) {
        this.success = success;
        this.data = data;
        this.error = error;
    }
    
    // 静态工厂方法
    public static SshCommandResponse success(String data) {
        return new SshCommandResponse(true, data);
    }
    
    public static SshCommandResponse error(String error) {
        return new SshCommandResponse(false, null, error);
    }
    
    // getter和setter方法
    public boolean isSuccess() { return success; }
    public void setSuccess(boolean success) { this.success = success; }
    
    public String getData() { return data; }
    public void setData(String data) { this.data = data; }
    
    public String getError() { return error; }
    public void setError(String error) { this.error = error; }
}